<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::RFTrainer&lt; RealVector &gt; Class Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html">RFTrainer&lt; RealVector &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::RFTrainer&lt; RealVector &gt; Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_r_f_trainer_8h_source.html">shark/Algorithms/Trainers/RFTrainer.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::RFTrainer&lt; RealVector &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_r_f_trainer_3_01_real_vector_01_4__inherit__graph.png" border="0" usemap="#ashark_1_1_r_f_trainer_3_01_real_vector_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_r_f_trainer_3_01_real_vector_01_4_inherit__map" id="ashark_1_1_r_f_trainer_3_01_real_vector_01_4_inherit__map">
<area shape="rect" title=" " alt="" coords="261,46,469,72"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="5,5,213,46"/>
<area shape="poly" title=" " alt="" coords="229,39,261,43,261,48,228,44"/>
<area shape="rect" href="classshark_1_1_i_parameterizable.html" title=" " alt="" coords="29,71,189,111"/>
<area shape="poly" title=" " alt="" coords="204,77,260,69,260,75,204,82"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa70d6bf3520d6a5961cdacfa7f540d36" id="r_aa70d6bf3520d6a5961cdacfa7f540d36"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#aa70d6bf3520d6a5961cdacfa7f540d36">RFTrainer</a> (bool computeFeatureImportances=false, bool computeOOBerror=false)</td></tr>
<tr class="memdesc:aa70d6bf3520d6a5961cdacfa7f540d36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct and compute feature importances when training or not.  <br /></td></tr>
<tr class="separator:aa70d6bf3520d6a5961cdacfa7f540d36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1ad33346b1541c85c3d239306acd92b" id="r_ae1ad33346b1541c85c3d239306acd92b"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#ae1ad33346b1541c85c3d239306acd92b">name</a> () const</td></tr>
<tr class="memdesc:ae1ad33346b1541c85c3d239306acd92b"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name.  <br /></td></tr>
<tr class="separator:ae1ad33346b1541c85c3d239306acd92b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26132d8880d145e1e09e0e5c5b92e53a" id="r_a26132d8880d145e1e09e0e5c5b92e53a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a26132d8880d145e1e09e0e5c5b92e53a">setMTry</a> (std::size_t mtry)</td></tr>
<tr class="separator:a26132d8880d145e1e09e0e5c5b92e53a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47b5618fe873957a5cd17ff5568361a3" id="r_a47b5618fe873957a5cd17ff5568361a3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a47b5618fe873957a5cd17ff5568361a3">setNTrees</a> (std::size_t numTrees)</td></tr>
<tr class="memdesc:a47b5618fe873957a5cd17ff5568361a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the number of trees to grow. (default 100)  <br /></td></tr>
<tr class="separator:a47b5618fe873957a5cd17ff5568361a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7973029c913a68140dc5082f8c5b5678" id="r_a7973029c913a68140dc5082f8c5b5678"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a7973029c913a68140dc5082f8c5b5678">setMinSplit</a> (std::size_t numSamples)</td></tr>
<tr class="memdesc:a7973029c913a68140dc5082f8c5b5678"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Minimum number of samples that is split (default 10)  <br /></td></tr>
<tr class="separator:a7973029c913a68140dc5082f8c5b5678"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82e8773ba20dcf97ea659ffc51713ba9" id="r_a82e8773ba20dcf97ea659ffc51713ba9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a82e8773ba20dcf97ea659ffc51713ba9">setMaxDepth</a> (std::size_t maxDepth)</td></tr>
<tr class="memdesc:a82e8773ba20dcf97ea659ffc51713ba9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Maximum depth of the tree (default 10000)  <br /></td></tr>
<tr class="separator:a82e8773ba20dcf97ea659ffc51713ba9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03743949c6b502d953db82e98280de3e" id="r_a03743949c6b502d953db82e98280de3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a03743949c6b502d953db82e98280de3e">setNodeSize</a> (std::size_t nodeSize)</td></tr>
<tr class="separator:a03743949c6b502d953db82e98280de3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0afd1b5c06d9eeea0f09ce75b1c3a160" id="r_a0afd1b5c06d9eeea0f09ce75b1c3a160"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a0afd1b5c06d9eeea0f09ce75b1c3a160">minImpurity</a> (double impurity)</td></tr>
<tr class="memdesc:a0afd1b5c06d9eeea0f09ce75b1c3a160"><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum impurity below which a a node is considere pure (default 1.e-10)  <br /></td></tr>
<tr class="separator:a0afd1b5c06d9eeea0f09ce75b1c3a160"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15b07750636e93b6caf5ce721226a0c5" id="r_a15b07750636e93b6caf5ce721226a0c5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a15b07750636e93b6caf5ce721226a0c5">epsilon</a> (double distance)</td></tr>
<tr class="memdesc:a15b07750636e93b6caf5ce721226a0c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum dtsnace of features to be considered different (detault 1.e-10)  <br /></td></tr>
<tr class="separator:a15b07750636e93b6caf5ce721226a0c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a0674d771e229c820f0d3dfa24b38a2" id="r_a9a0674d771e229c820f0d3dfa24b38a2"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a9a0674d771e229c820f0d3dfa24b38a2">parameterVector</a> () const</td></tr>
<tr class="memdesc:a9a0674d771e229c820f0d3dfa24b38a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the parameter vector.  <br /></td></tr>
<tr class="separator:a9a0674d771e229c820f0d3dfa24b38a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2172de721b6e63265d67c56076036121" id="r_a2172de721b6e63265d67c56076036121"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a2172de721b6e63265d67c56076036121">setParameterVector</a> (RealVector const &amp;newParameters)</td></tr>
<tr class="memdesc:a2172de721b6e63265d67c56076036121"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the parameter vector.  <br /></td></tr>
<tr class="separator:a2172de721b6e63265d67c56076036121"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4975033b328b481f5bbfa2fea88ddcd9" id="r_a4975033b328b481f5bbfa2fea88ddcd9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a4975033b328b481f5bbfa2fea88ddcd9">train</a> (<a class="el" href="classshark_1_1_r_f_classifier.html">RFClassifier</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a> &gt; &amp;model, <a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; RealVector, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a> &gt; const &amp;dataset)</td></tr>
<tr class="memdesc:a4975033b328b481f5bbfa2fea88ddcd9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Train a random forest for classification.  <br /></td></tr>
<tr class="separator:a4975033b328b481f5bbfa2fea88ddcd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_weighted_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_weighted_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_weighted_trainer.html">shark::AbstractWeightedTrainer&lt; RFClassifier&lt; RealVector &gt; &gt;</a></td></tr>
<tr class="memitem:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer" id="r_ad35ae0b236c45b73f749285a54288e89"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad35ae0b236c45b73f749285a54288e89">train</a> (<a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ab6d74ebe9e01f9eefb70f9eb12738ffe">WeightedDatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm and trains a model on the given weighted data.  <br /></td></tr>
<tr class="separator:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer" id="r_a9e5711480e4f1e214ff3c30a9604d10a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a9e5711480e4f1e214ff3c30a9604d10a">train</a> (<a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8c8370c0d2c2550a50df4d6b0bccf42b">DatasetType</a> const &amp;dataset)</td></tr>
<tr class="memdesc:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm and trains a model on the given unweighted data.  <br /></td></tr>
<tr class="separator:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer" id="r_a71d3fd2567473d746ecb733d7fa28c7e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a71d3fd2567473d746ecb733d7fa28c7e">train</a> (<a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Core of the Trainer interface.  <br /></td></tr>
<tr class="separator:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_serializable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_serializable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_serializable.html">shark::ISerializable</a></td></tr>
<tr class="memitem:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable" id="r_a7baa9ce108d7278822297ce15882782a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a7baa9ce108d7278822297ce15882782a">~ISerializable</a> ()</td></tr>
<tr class="memdesc:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual d'tor.  <br /></td></tr>
<tr class="separator:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable" id="r_ad4ad9a7c274deff642f91e98417fbc63"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#ad4ad9a7c274deff642f91e98417fbc63">read</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive)</td></tr>
<tr class="memdesc:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the component from the supplied archive.  <br /></td></tr>
<tr class="separator:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable" id="r_a9bddedd42933c922e323b73131f62f12"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a9bddedd42933c922e323b73131f62f12">write</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive) const</td></tr>
<tr class="memdesc:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the component to the supplied archive.  <br /></td></tr>
<tr class="separator:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable" id="r_abdda0c5b8e065b8afbac2cba8f58e841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#abdda0c5b8e065b8afbac2cba8f58e841">load</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive, unsigned int version)</td></tr>
<tr class="memdesc:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned loading of components, calls read(...).  <br /></td></tr>
<tr class="separator:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable" id="r_a5bf66fa8db15cc529bec98976a2f5255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a5bf66fa8db15cc529bec98976a2f5255">save</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive, unsigned int version) const</td></tr>
<tr class="memdesc:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned storing of components, calls write(...).  <br /></td></tr>
<tr class="separator:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable" id="r_a4560a94e8f4908fe8627e41e7d965735"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a4560a94e8f4908fe8627e41e7d965735">BOOST_SERIALIZATION_SPLIT_MEMBER</a> ()</td></tr>
<tr class="separator:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; RealVector &gt;</a></td></tr>
<tr class="memitem:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable" id="r_a9e3a11172e74d1aa7292f3de4e2b6ebc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a9e3a11172e74d1aa7292f3de4e2b6ebc">~IParameterizable</a> ()</td></tr>
<tr class="separator:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed1e8d1d4dbde387e2f6a25141ed3a20 inherit pub_methods_classshark_1_1_i_parameterizable" id="r_aed1e8d1d4dbde387e2f6a25141ed3a20"><td class="memItemLeft" align="right" valign="top">virtual std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#aed1e8d1d4dbde387e2f6a25141ed3a20">numberOfParameters</a> () const</td></tr>
<tr class="memdesc:aed1e8d1d4dbde387e2f6a25141ed3a20 inherit pub_methods_classshark_1_1_i_parameterizable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of parameters.  <br /></td></tr>
<tr class="separator:aed1e8d1d4dbde387e2f6a25141ed3a20 inherit pub_methods_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_weighted_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_weighted_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_weighted_trainer.html">shark::AbstractWeightedTrainer&lt; RFClassifier&lt; RealVector &gt; &gt;</a></td></tr>
<tr class="memitem:ad2ad0a52ecd9ac8677df6dbf403b68b4 inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_ad2ad0a52ecd9ac8677df6dbf403b68b4"><td class="memItemLeft" align="right" valign="top">typedef base_type::ModelType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a></td></tr>
<tr class="separator:ad2ad0a52ecd9ac8677df6dbf403b68b4 inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e51b154b87ed5e33b6ce2c830cd3d6 inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a11e51b154b87ed5e33b6ce2c830cd3d6"><td class="memItemLeft" align="right" valign="top">typedef base_type::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a></td></tr>
<tr class="separator:a11e51b154b87ed5e33b6ce2c830cd3d6 inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc4b95c06687c88b75ea8db8187336d inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a8cc4b95c06687c88b75ea8db8187336d"><td class="memItemLeft" align="right" valign="top">typedef base_type::LabelType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a></td></tr>
<tr class="separator:a8cc4b95c06687c88b75ea8db8187336d inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c8370c0d2c2550a50df4d6b0bccf42b inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a8c8370c0d2c2550a50df4d6b0bccf42b"><td class="memItemLeft" align="right" valign="top">typedef base_type::DatasetType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8c8370c0d2c2550a50df4d6b0bccf42b">DatasetType</a></td></tr>
<tr class="separator:a8c8370c0d2c2550a50df4d6b0bccf42b inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d74ebe9e01f9eefb70f9eb12738ffe inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_ab6d74ebe9e01f9eefb70f9eb12738ffe"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ab6d74ebe9e01f9eefb70f9eb12738ffe">WeightedDatasetType</a></td></tr>
<tr class="separator:ab6d74ebe9e01f9eefb70f9eb12738ffe inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0d5c9d35b614d6a33e4e8bfeaf1e9298"><td class="memItemLeft" align="right" valign="top">typedef Model&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a></td></tr>
<tr class="separator:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0cfa7cdd27b8bb162e64188095f8fa71"><td class="memItemLeft" align="right" valign="top">typedef ModelType::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a></td></tr>
<tr class="separator:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4e344106831fb8227c2120681588ea9"><td class="memItemLeft" align="right" valign="top">typedef LabelTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a></td></tr>
<tr class="separator:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4730fe9d59622d35d95cd4233f8d7af"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a>, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a></td></tr>
<tr class="separator:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; RealVector &gt;</a></td></tr>
<tr class="memitem:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable" id="r_a2ad5e2e60b2b352988b41f46024d790b"><td class="memItemLeft" align="right" valign="top">typedef RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">ParameterVectorType</a></td></tr>
<tr class="separator:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00194">194</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa70d6bf3520d6a5961cdacfa7f540d36" name="aa70d6bf3520d6a5961cdacfa7f540d36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa70d6bf3520d6a5961cdacfa7f540d36">&#9670;&#160;</a></span>RFTrainer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::RFTrainer </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>computeFeatureImportances</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>computeOOBerror</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construct and compute feature importances when training or not. </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00199">199</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a15b07750636e93b6caf5ce721226a0c5" name="a15b07750636e93b6caf5ce721226a0c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15b07750636e93b6caf5ce721226a0c5">&#9670;&#160;</a></span>epsilon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::epsilon </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>distance</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The minimum dtsnace of features to be considered different (detault 1.e-10) </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00237">237</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a0afd1b5c06d9eeea0f09ce75b1c3a160" name="a0afd1b5c06d9eeea0f09ce75b1c3a160"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0afd1b5c06d9eeea0f09ce75b1c3a160">&#9670;&#160;</a></span>minImpurity()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::minImpurity </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>impurity</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The minimum impurity below which a a node is considere pure (default 1.e-10) </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00234">234</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="ae1ad33346b1541c85c3d239306acd92b" name="ae1ad33346b1541c85c3d239306acd92b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1ad33346b1541c85c3d239306acd92b">&#9670;&#160;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">shark::INameable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00212">212</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a9a0674d771e229c820f0d3dfa24b38a2" name="a9a0674d771e229c820f0d3dfa24b38a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a0674d771e229c820f0d3dfa24b38a2">&#9670;&#160;</a></span>parameterVector()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::parameterVector </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the parameter vector. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#afaa2ba692ab64a0edbff60d7ee6794db">shark::IParameterizable&lt; RealVector &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00240">240</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a82e8773ba20dcf97ea659ffc51713ba9" name="a82e8773ba20dcf97ea659ffc51713ba9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82e8773ba20dcf97ea659ffc51713ba9">&#9670;&#160;</a></span>setMaxDepth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::setMaxDepth </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>maxDepth</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set Maximum depth of the tree (default 10000) </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00227">227</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a7973029c913a68140dc5082f8c5b5678" name="a7973029c913a68140dc5082f8c5b5678"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7973029c913a68140dc5082f8c5b5678">&#9670;&#160;</a></span>setMinSplit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::setMinSplit </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>numSamples</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set Minimum number of samples that is split (default 10) </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00224">224</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a26132d8880d145e1e09e0e5c5b92e53a" name="a26132d8880d145e1e09e0e5c5b92e53a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26132d8880d145e1e09e0e5c5b92e53a">&#9670;&#160;</a></span>setMTry()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::setMTry </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>mtry</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the number of random attributes to investigate at each node.</p>
<p>Defualt is 0 which is translated to inputDim(data)/3 during training </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00218">218</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a03743949c6b502d953db82e98280de3e" name="a03743949c6b502d953db82e98280de3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03743949c6b502d953db82e98280de3e">&#9670;&#160;</a></span>setNodeSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::setNodeSize </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>nodeSize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Controls when a node is considered pure. If set to 1, a node is pure when it only consists of a single node.(default 5) </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00231">231</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a47b5618fe873957a5cd17ff5568361a3" name="a47b5618fe873957a5cd17ff5568361a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47b5618fe873957a5cd17ff5568361a3">&#9670;&#160;</a></span>setNTrees()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::setNTrees </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>numTrees</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the number of trees to grow. (default 100) </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00221">221</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

</div>
</div>
<a id="a2172de721b6e63265d67c56076036121" name="a2172de721b6e63265d67c56076036121"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2172de721b6e63265d67c56076036121">&#9670;&#160;</a></span>setParameterVector()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::setParameterVector </td>
          <td>(</td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>newParameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the parameter vector. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#ad5e35d1a10ff36fa72ea787baa40e9ad">shark::IParameterizable&lt; RealVector &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00243">243</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

<p class="reference">References <a class="el" href="_exception_8h.html#a73abb5049a0168d72a48e72dda41708b">SHARK_ASSERT</a>.</p>

</div>
</div>
<a id="a4975033b328b481f5bbfa2fea88ddcd9" name="a4975033b328b481f5bbfa2fea88ddcd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4975033b328b481f5bbfa2fea88ddcd9">&#9670;&#160;</a></span>train()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_r_f_trainer.html">shark::RFTrainer</a>&lt; RealVector &gt;::train </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_r_f_classifier.html">RFClassifier</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; RealVector, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>dataset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Train a random forest for classification. </p>

<p class="definition">Definition at line <a class="el" href="_r_f_trainer_8h_source.html#l00249">249</a> of file <a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_ensemble.html#aaa96d4139d33b84477f8a41d9d12c8bb">shark::Ensemble&lt; ModelType, OutputType &gt;::addModel()</a>, <a class="el" href="namespaceshark.html#a23d76a81bf28d05f9357d236a63a17c8">shark::bootstrap()</a>, <a class="el" href="classshark_1_1_ensemble.html#ab04ccf3f9acb405f3fdedd125ff5ed1c">shark::Ensemble&lt; ModelType, OutputType &gt;::clearModels()</a>, <a class="el" href="classshark_1_1_r_f_classifier.html#a290cb9386878b0264faf15dae5dc2068">shark::RFClassifier&lt; LabelType &gt;::computeFeatureImportances()</a>, <a class="el" href="classshark_1_1_r_f_classifier.html#a336a6c2b13f973dd780644319dab4e8a">shark::RFClassifier&lt; LabelType &gt;::computeOOBerror()</a>, <a class="el" href="namespaceshark_1_1random.html#aa64d4174eaf7111b03e0504eaa56b666">shark::random::discrete()</a>, <a class="el" href="group__shark__globals.html#gad9b0233e3adc882ed94f418f80767b09">shark::Data&lt; Type &gt;::elements()</a>, <a class="el" href="namespaceshark_1_1random.html#ab5c1547eee483974d008d43f621a2234">shark::random::globalRng</a>, <a class="el" href="group__shark__globals.html#gae537f0e90beb970397cd7bb9250984e2">shark::inputDimension()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#ad11b0613785e1c6f36f6dd5d32662ead">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputs()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#ae3ca78f96dd1c1881b04d3726213a136">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::labels()</a>, <a class="el" href="_open_m_p_8h.html#a6de33df9d72bea69f903cffb391e7121">SHARK_CRITICAL_REGION</a>, and <a class="el" href="_open_m_p_8h.html#a8a63d79e2c3625260e6092d933f21a98">SHARK_PARALLEL_FOR</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/Trainers/<a class="el" href="_r_f_trainer_8h_source.html">RFTrainer.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
